package cn.fastoo.common.entity;

import cn.fastoo.common.sampleframe.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Table(name = "batch")
public class Batch  extends BaseEntity {

	@Column(name = "batch_name")
	private String batchName;
	@Column(name = "content")
	private String content;
	// 定时发送
	@Column(name = "timing")
	private Date timing;
	// （定时时）状态(1启动 0暂停 -1取消 2已发送)
	@Column(name = "status")
	private Integer status;
	// 创建时间
	@Column(name = "submit_time_dt")
	private Integer submitTimeDt;
	@Column(name = "submit_time")
	private Date submitTime;
	// 总计费条数
	@Column(name = "total_fee_num")
	private Integer totalFeeNum;
	// 总条数
	@Column(name = "total_num")
	private Integer totalNum;
	// 发送用户
	@Column(name = "user_base_id")
	private Long userBaseId;
	// 发送账号
	@Column(name = "api_key")
	private String apiKey;

	private Integer sendedStatus;//发送状态 0发送中 1已发送 2等待发送

	public String getBatchName() {
		return batchName;
	}

	public void setBatchName(String batchName) {
		this.batchName = batchName;
	}

	public Integer getSendedStatus() {
		return sendedStatus;
	}

	public void setSendedStatus(Integer sendedStatus) {
		this.sendedStatus = sendedStatus;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTiming() {
		return timing;
	}

	public void setTiming(Date timing) {
		this.timing = timing;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public Integer getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}

	public Long getUserBaseId() {
		return userBaseId;
	}

	public void setUserBaseId(Long userBaseId) {
		this.userBaseId = userBaseId;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public Integer getSubmitTimeDt() {
		return submitTimeDt;
	}

	public void setSubmitTimeDt(Integer submitTimeDt) {
		this.submitTimeDt = submitTimeDt;
	}

	public Integer getTotalFeeNum() {
		return totalFeeNum;
	}

	public void setTotalFeeNum(Integer totalFeeNum) {
		this.totalFeeNum = totalFeeNum;
	}
}